package cn.yitun.chat.yitunservercommonlib.converter.po2vo.user;


import cn.yitun.chat.yitunservercommonlib.converter.dto2vo.user.UserChatContentDto2VoConverter;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.userchat.UserChatContentInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.userchat.UserChatContentVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface UserChatContentPo2VoConverter {

    UserChatContentDto2VoConverter INSTANCE = Mappers.getMapper(UserChatContentDto2VoConverter.class);

    UserChatContentInfo po2vo(UserChatContentVo vo);

    List<UserChatContentInfo> po2vo(List<UserChatContentVo> voList);

    @InheritInverseConfiguration
    UserChatContentVo vo2po(UserChatContentInfo dto);

    @InheritInverseConfiguration
    List<UserChatContentVo> vo2po(List<UserChatContentInfo> dtoList);
}
